#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QSerialPort>

#include <cameraadjust.h>
#include <sysoption.h>
#include <waitwidget.h>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    QLabel * statusRunLabel;
    QLabel * messageLabel;
    QWidget * cameraAdjustWidget = nullptr;
    QWidget * sysOptionWidget = nullptr;
    QSerialPort * port;
    QTimer * waitTimer = nullptr;
    cameraAdjust * myCameraAdjust = nullptr;
    sysOption * mySysOption = nullptr;
    waitWidget * myWait = nullptr;


private:
    Ui::MainWindow *ui;
public slots:
    void setStatusIcon(bool status);
    void setStatusMessageText(QString text);
    void waitTimerOut();
    void showWaitMS(int ms);
private slots:
    void on_pushButton_2_clicked();
    void on_pushButton_clicked();
};
#endif // MAINWINDOW_H
